package beans;

public class Classroom {

    private Student student;

    private int id;

    private String location;

    public Classroom(int id, String location, Student student) {
        this.student = student;
        this.id = id;
        this.location = location;
    }

    public Student getStudent() {
        return student;
    }

    public void setStudent(Student student) {
        this.student = student;
    }

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public String getLocation() {
        return location;
    }

    public void setLocation(String location) {
        this.location = location;
    }

    @Override
    public String toString() {
        return "Classroom{" +
                "student=" + student +
                ", id=" + id +
                ", location='" + location + '\'' +
                '}';
    }
}
